package com.yh.csx.crm.qo;

import com.yh.csx.crm.core.entity.Pagination;
import lombok.Data;

import java.util.List;

/**
 * @author cheng hong
 * @date 2019-03-01 13:16
 */
@Data
public class ReportCreditWarningQo extends Pagination {

    private List<String> custIds;

    private List<Long> salesUserIds;

    private Integer orderField;

    private Integer sortType;

    public String getOrderType() {
        return sortType == null || sortType.equals(0) ? "ASC" : " DESC";
    }

    public String getOrderCol() {
        return orderField == null || orderField.equals(1) ? "surplus_amount" : "use_day";
    }


}
